home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / math / ucalcw.zip / UCALC.US_ / UCALC.US
Text File  |  1997-06-04  |  7KB  |  217 lines

  1. Begin Module
  2.    Name         =  "Area - Rectangle"
  3.    Formula      =  "Area = Length * Width"
  4.    Description  =  ""
  5.    Begin Parameter(LENGTH)
  6.       Caption       =  "Length:"
  7.       Format        =  "General"
  8.       Constraints   =  ""
  9.       Details       =  ""
  10.    End
  11.    Begin Parameter(WIDTH)
  12.       Caption       =  "Width:"
  13.       Format        =  "General"
  14.       Constraints   =  ""
  15.       Details       =  ""
  16.    End
  17.    Begin Parameter(AREA)
  18.       Caption       =  "Area:"
  19.       Format        =  "General"
  20.       Constraints   =  ""
  21.       Details       =  ""
  22.    End
  23. End Module
  24.  
  25. Begin Module
  26.    Name         =  "Constraint Demonstration"
  27.    Formula      =  "Total = a + b + c + d"
  28.    Description  =  "This USM demonstrates the use of constraints.  Each field accepts only values that fall within the defined constraints."
  29.    Begin Parameter(A)
  30.       Caption       =  "a"
  31.       Format        =  "General"
  32.       Constraints   =  "x<-10 or x>10"
  33.       Details       =  "Enter a number in this field  which is less than -10 or greater than 10."
  34.    End
  35.    Begin Parameter(B)
  36.       Caption       =  "b"
  37.       Format        =  "General"
  38.       Constraints   =  "-20..20, x<>0"
  39.       Details       =  "Enter a number between -20 and 20, excluding 0."
  40.    End
  41.    Begin Parameter(C)
  42.       Caption       =  "c"
  43.       Format        =  "General"
  44.       Constraints   =  "x<9,x>0,x<>3"
  45.       Details       =  "Enter a number smaller than 9 and greater than 0, but not 3."
  46.    End
  47.    Begin Parameter(D)
  48.       Caption       =  "d"
  49.       Format        =  "General"
  50.       Constraints   =  ""
  51.       Details       =  "This field has no constraints.  You may enter any number."
  52.    End
  53.    Begin Parameter(TOTAL)
  54.       Caption       =  "Total"
  55.       Format        =  "General"
  56.       Constraints   =  "0..100"
  57.       Details       =  "Enter a number between 0 and 100.  If you are solving for this field, it will return an error if the answer is not between 0 and 100."
  58.    End
  59. End Module
  60.  
  61. Begin Module
  62.    Name         =  "Finance - Annuity, Present Value (mortgage)"
  63.    Formula      =  "payment = PV*i/(1-(1+i)^(-n))"
  64.    Description  =  "This USM can be used for calculating mortgage payments."
  65.    Begin Parameter(PV)
  66.       Caption       =  "Present Value:"
  67.       Format        =  "Currency"
  68.       Constraints   =  ""
  69.       Details       =  "Present Value."
  70.    End
  71.    Begin Parameter(I)
  72.       Caption       =  "Interest Rate:"
  73.       Format        =  "Percent"
  74.       Constraints   =  ""
  75.       Details       =  "If interest is compounded monthly, then divide this value by 12 (For instance, you may enter: 9% /12)."
  76.    End
  77.    Begin Parameter(N)
  78.       Caption       =  "Number of Payments:"
  79.       Format        =  "#"
  80.       Constraints   =  ""
  81.       Details       =  "If payments are monthly, then enter the number of years times 12 (ex: 15*12)."
  82.    End
  83.    Begin Parameter(PAYMENT)
  84.       Caption       =  "Periodic Payment:"
  85.       Format        =  "Currency"
  86.       Constraints   =  ""
  87.       Details       =  "The amount you pay each time."
  88.    End
  89. End Module
  90.  
  91. Begin Module
  92.    Name         =  "Finance - Simple Interest"
  93.    Formula      =  "I = P*R*T"
  94.    Description  =  ""
  95.    Begin Parameter(P)
  96.       Caption       =  "Principal"
  97.       Format        =  "Currency"
  98.       Constraints   =  ""
  99.       Details       =  ""
  100.    End
  101.    Begin Parameter(R)
  102.       Caption       =  "Rate"
  103.       Format        =  "Percent"
  104.       Constraints   =  ""
  105.       Details       =  ""
  106.    End
  107.    Begin Parameter(T)
  108.       Caption       =  "Time"
  109.       Format        =  "#"
  110.       Constraints   =  ""
  111.       Details       =  ""
  112.    End
  113.    Begin Parameter(I)
  114.       Caption       =  "Interest"
  115.       Format        =  "Currency"
  116.       Constraints   =  ""
  117.       Details       =  ""
  118.    End
  119. End Module
  120.  
  121. Begin Module
  122.    Name         =  "Finance - Add-on Interest"
  123.    Formula      =  "AIR = 2*I*C / ( P*(n+1) )"
  124.    Description  =  ""
  125.    Begin Parameter(I)
  126.       Caption       =  "Installments per year:"
  127.       Format        =  "#"
  128.       Constraints   =  ""
  129.       Details       =  "Number of installment payments per year"
  130.    End
  131.    Begin Parameter(C)
  132.       Caption       =  "Charge:"
  133.       Format        =  "Currency"
  134.       Constraints   =  ""
  135.       Details       =  "Total loan charge"
  136.    End
  137.    Begin Parameter(P)
  138.       Caption       =  "Principal:"
  139.       Format        =  "Currency"
  140.       Constraints   =  ""
  141.       Details       =  "Loan amount"
  142.    End
  143.    Begin Parameter(N)
  144.       Caption       =  "Installments:"
  145.       Format        =  "#"
  146.       Constraints   =  ""
  147.       Details       =  "Total number of installments"
  148.    End
  149.    Begin Parameter(AIR)
  150.       Caption       =  "Add-on Interest rate:"
  151.       Format        =  "Percent"
  152.       Constraints   =  ""
  153.       Details       =  "Add-on interest rate"
  154.    End
  155. End Module
  156.  
  157. Begin Module
  158.    Name         =  "Finance - Compound Interest"
  159.    Formula      =  "CS = BD*(1+i)^n"
  160.    Description  =  "This USM calculates interest paid on interest earned, or interest on interest."
  161.    Begin Parameter(BD)
  162.       Caption       =  "Beginning deposit:"
  163.       Format        =  "Currency"
  164.       Constraints   =  ""
  165.       Details       =  "Same as original principal, present value, or present worth."
  166.    End
  167.    Begin Parameter(I)
  168.       Caption       =  "Interest rate:"
  169.       Format        =  "Percent"
  170.       Constraints   =  ".01%..1000%"
  171.       Details       =  "Interest rate per period, or periodic interest rate.  If it is compounded monthly, then divide this value by 12."
  172.    End
  173.    Begin Parameter(N)
  174.       Caption       =  "Number of periods:"
  175.       Format        =  "#"
  176.       Constraints   =  ""
  177.       Details       =  "Total number of payment periods in the term, or number of years multiplied by number of payment periods per year."
  178.    End
  179.    Begin Parameter(CS)
  180.       Caption       =  "Compound Sum:"
  181.       Format        =  "Currency"
  182.       Constraints   =  ""
  183.       Details       =  "Also called compound amount, or maturity value, or accumulated value."
  184.    End
  185. End Module
  186.  
  187. Begin Module
  188.    Name         =  "Finance - Annuity Sum (ordinary)"
  189.    Formula      =  "S = R*((1+i)^n-1)/i"
  190.    Description  =  "Ordinary annuity where payments are made at the end of each period."
  191.    Begin Parameter(R)
  192.       Caption       =  "Periodic payment:"
  193.       Format        =  "Currency"
  194.       Constraints   =  ""
  195.       Details       =  "The amount you pay each time.  Also referred to as the periodic rent payment."
  196.    End
  197.    Begin Parameter(I)
  198.       Caption       =  "Interest rate per period:"
  199.       Format        =  "Percent"
  200.       Constraints   =  ".01%..1000%"
  201.       Details       =  "If it is compounded monthly, then divide this value by 12."
  202.    End
  203.    Begin Parameter(N)
  204.       Caption       =  "Number of periods:"
  205.       Format        =  "#"
  206.       Constraints   =  ""
  207.       Details       =  "If it is compounded monthly, then multiply this amount by 12."
  208.    End
  209.    Begin Parameter(S)
  210.       Caption       =  "Accumulated value:"
  211.       Format        =  "Currency"
  212.       Constraints   =  ""
  213.       Details       =  "Value of the annuity at the end of its term."
  214.    End
  215. End Module
  216.  
  217.